package com.hl.service;

import com.hl.mapper.WenzhangMapper;
import com.hl.pojo.Wenzhang;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class WenzhangServiceImpl implements WenzhangService{
    @Autowired
    private WenzhangMapper wenzhangMapper;
    @Override
    public Integer add(Wenzhang wenzhang) {
        return wenzhangMapper.add(wenzhang);
    }

    @Override
    public List<Wenzhang> findAll() {
        return wenzhangMapper.findAll();
    }

    @Override
    public Integer del(Wenzhang wenzhang) {
        return wenzhangMapper.del(wenzhang);
    }
}
